<?php
namespace app\common\model;

use think\Model;
use think\Request;

class UserLog extends Model
{
    protected $autoWriteTimestamp = true;
    protected $type = [
       
    ];
    protected function base($query)
    {

    }
    public function getClientAttr($value)
    {
        $status = [1=>'小程序',0=>'电脑',2=>'小程序'];
        return $status[$value];
    }
    //获取部门
    public function shop()
    {
        return $this->belongsTo(Shop::class,'shop_id','id');
    }
    //获取部门
    public function user()
    {
        return $this->belongsTo(User::class,'user_id','id');
    }
    
    
    
}